<?php
$this->breadcrumbs=array(
	'试卷管理'=>array('tests/'),
	$model->SID->subjectsTestsId->tests_name=>array('subjects/','testId'=>$model->tests_question_tid),
	$model->SID->subjects_title=>array('admin','tqId'=>$model->tests_question_sid,'testId'=>$model->tests_question_tid),
	$model->tests_question_title,
);

$this->menu=array(
	array('label'=>'新增', 'url'=>array('create','tqId'=>$model->tests_question_sid,'testId'=>$model->tests_question_tid)),
	array('label'=>'修改', 'url'=>array('update', 'id'=>$model->tests_question_id,'tqId'=>$model->tests_question_sid,'testId'=>$model->tests_question_tid)),
	array('label'=>'删除', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->tests_question_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'管理', 'url'=>array('admin','tqId'=>$model->tests_question_sid,'testId'=>$model->tests_question_tid)),
);
?>


<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'tests_question_title',
		array(               // related city displayed as a link
            'name'=>'tests_question_type',
            'type'=>'raw',
            'value'=>Questions::model()->getQTyptText($model->tests_question_type),
        ),
		'tests_question_content',
		'tests_question_answer',
		'tests_question_explanation',
		array(
			'label'=>'来源',
			'type'=>'raw',
			'value'=>($model->tests_question_qd>0)?'题库':'自增',
		),
		array(
			'label'=>'试卷',
			'type'=>'raw',
			'value'=>$model->TID->tests_name,
		),
		array(
			'label'=>'大题',
			'type'=>'raw',
			'value'=>$model->SID->subjects_title,
		),
		array(
			'name'=>'tests_question_score',
			'type'=>'raw',
			'value'=>$model->tests_question_score.'%',
		),
	),
)); ?>
